//
//  GamePlayer.cpp
//  QuizMaster
//
//  Created by Jeppe Nielsen on 4/8/15.
//  Copyright (c) 2015 Jeppe Nielsen. All rights reserved.
//

#include "GamePlayer.hpp"

GamePlayer::GamePlayer() { Reset();}
GamePlayer::~GamePlayer() {}

void GamePlayer::Reset() { score = 0; IsPlaying = true; }

void GamePlayer::GivePoints(int points) {
    score += points;
    if (score<0) {
        score = 0;
    }
}

int GamePlayer::GetScore() const {
    return score;
}